package com.bookmarket.test;

import com.bookmarket.entity.Order_Book;
import com.bookmarket.entity.Stype;
import com.bookmarket.service.LQBackIndexService;
import com.bookmarket.utils.FileUtils;
import com.bookmarket.utils.IdGenerator;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:spring-mybatis.xml")
public class Demo {

    @Resource
    private LQBackIndexService backIndexService;

    @Test
    public void Test(){
        System.out.println(backIndexService.oneMonthSal(1));
    }

    public void setBackIndexService(LQBackIndexService backIndexService) {
        this.backIndexService = backIndexService;
    }
}